package com.ccmusic.service.impl;

import java.util.List;

import com.ccmusic.dao.ListViewDao;
import com.ccmusic.dao.impl.ListViewDaoImpl;
import com.ccmusic.entity.ListView;
import com.ccmusic.service.ListViewService;
import com.ccmusic.util.DatatablesBean;

public class ListViewServiceImpl implements ListViewService {
	private ListViewDao lvd = new ListViewDaoImpl();

	@Override
	public boolean creatList(int uid, String lname, String lcover) {
		return lvd.creatList(uid, lname, lcover);
	}

	@Override
	public boolean addToList(String lid, String mid) {
		return lvd.addToList(lid, mid);
	}

	@Override
	public boolean queryListByUidAndLname(String uid, String lname) {
		return lvd.queryListByUidAndLname(uid, lname);
	}

	@Override
	public DatatablesBean<ListView> getLists(String uid) {
		DatatablesBean<ListView> dtb = new DatatablesBean<>(lvd.getLists(uid));
		return dtb;
	}

	@Override
	public boolean delList(String uid, String lname) {
		return lvd.delList(uid, lname);
	}

}
